package com.liushuai.eas.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liushuai.eas.pojo.Department;
import com.liushuai.eas.pojo.Major;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MajorMapper extends BaseMapper<Major> {

    //查询所有-分页
    List<Major> queryMajorList(int pageBegin,int pageEnd);

    //查询所有通过关键字
    List<Major> queryMajorListBySearch(int pageBegin,int pageEnd,String search);

    //查询总数
    int queryTotal();

    //查询总数通过关键字
    int queryTotalBySearch(String search);

    //根据ID查找
    Major selectOne(Integer id);

    //查询所有
    List<Major> queryMajorListAll();

}
